import request from '@/utils/request'

// 查询心理培训证书列表
export function listXueshi(query) {
  return request({
    url: '/cert/xueshi/list',
    method: 'get',
    params: query
  })
}

// 查询心理培训证书详细
export function getXueshi(id) {
  return request({
    url: '/cert/xueshi/' + id,
    method: 'get'
  })
}
// 预览证书
export function preview(id) {
  return request({
    url: '/cert/xueshi/preview/' + id,
    method: 'get'
  })
}

// 新增心理培训证书
export function addXueshi(data) {
  return request({
    url: '/cert/xueshi',
    method: 'post',
    data: data
  })
}

// 修改心理培训证书
export function updateXueshi(data) {
  return request({
    url: '/cert/xueshi',
    method: 'put',
    data: data
  })
}

// 删除心理培训证书
export function delXueshi(id) {
  return request({
    url: '/cert/xueshi/' + id,
    method: 'delete'
  })
}
